<!--
 * @Description:
 * @version:
 * @Author: 尹鹏孝
 * @Date: 2023-02-21 09:21:32
 * @LastEditors: 尹鹏孝
 * @LastEditTime: 2023-02-21 10:31:48
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css选择器</title>
    <style>
        .a-_5{
            background-color: aqua;
        }
        .yyds :first-child{
            background-color: #444;
        }.yyds :nth-of-type(3n){
            background-color: #dda;
        }
        .yyds :not(.p.s){
            background-color: blue;
        }
        .one+.p{
            background-color: bisque;
        }
        .one+.p~.two{
            background-color: aquamarine;
        }



    </style>
</head>
<body>
    <div class="a-_5 dd ss">2222</div>
    <div class="yyds">
        <div class="p one">1</div>
        <div class="p s">1</div>
        <div class="p two">2</div>
        <div class="p">2</div>
        <div class="p s">2</div>
        <div class="p">2</div>
        <div class="p two">3</div>
        <div class="p s">3</div>
        <div class="p two">3</div>
        <div class="p">3</div>
        <div class="p">3</div>
    </div>
    <div class="yyds" style="margin-top:230px">
        <div class="p">1</div>
        <div class="p">1</div>
        <div class="p s">2</div>
        <div class="p">2</div>
        <div class="p two">2</div>
        <div class="p">2</div>
        <div class="p s">3</div>
        <div class="p">3</div>
        <div class="p">3</div>
        <div class="p">3</div>
        <div class="p">3</div>
    </div>

</body>
</html>